package com.sc.VenusQueryBeta.contract.account;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/11/8.
 * 幣種契約接口
 */

public interface CurrencyContract {
    abstract class CurrencyPresenter extends BasePresenter<ICurrencyModel,ICurrencyView> {
        public abstract void getcurrency(String serverAddress, String projectName, int serverPort,int clientindex,int recognitionValue);
    }
    interface ICurrencyModel extends IBaseModel {
        Observable<CurrencyBean> getcurrency(String serverAddress, String projectName, int serverPort,int clientindex,int recognitionValue);
    }
    interface ICurrencyView extends IBaseActivity {
        void showNetworkError(Throwable throwable);

        //獲取幣種
        void showgetCurrencyData(CurrencyBean currencyBean);
    }
}
